<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class PatientCase extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //
        Schema::create('patient_case',function(Blueprint $table){
            $table->bigIncrements('id')->unsigned();
            $table->bigInteger('user_id')->index()->nullable()->unsigned;
            $table->bigInteger('patient_id')->index()->nullable()->unsigned;
            $table->string('first_name')->nullable();
            $table->string('last_name')->nullable();          
            $table->enum('type',array('regular'=>'regular', 'special'=>'special'))->nullable();
            $table->text('description')->nullable();
            $table->string('check_doctor')->nullable();
            $table->decimal('eyesight_left')->nullable();
            $table->decimal('eyesight_right')->nullable();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
        Schema::drop('patient_case');
    }
}
